/**
 * Copyright (c) 2020-2021 浦东大爷 All rights reserved.
 * 机会永远都是留给有准备的人
 */
package com.lagou.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: gitwo
 * @date: 2021-03-08
 * @description:
 */
@Data //通过lombok的注释，相当于get/set方法和toString方法
@AllArgsConstructor //添加全参构造方法
@NoArgsConstructor // 添加无参构造方法
public class User {
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String phone;

    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private Date updateTime;

}
